<template>
  <div class="top">
    <!--      左-->
    <div class="flex align-center">
      <div class="flex align-center">
        <div class="icon"></div>
        <span class="title">
          <slot name="title"></slot>
        </span>
      </div>
      <div class="margin-left">
        <slot name="left"></slot>
      </div>
    </div>
    <!--      右-->
    <div class="flex align-center flex-gap-justify">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'cardTitle'
};
</script>

<style scoped lang="scss">
@import "@/assets/css/util.scss";

:deep(.el-input__inner) {
  height: vh(30) !important;
  line-height: vh(30) !important;
  padding-right: vw(30);
}
:deep(.el-select .el-input .el-select__caret) {
  font-size: vw(14);
}
:deep(.el-input__suffix) {
  right: vw(5);
}
:deep(.el-input__icon) {
  width: vw(25);
  line-height: vh(30);
}
:deep(.el-radio-button--small .el-radio-button__inner) {
  padding: vh(5) vw(25);
}

.top {
  height: vh(30);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: vh(10);

  .icon {
    width: vw(6);
    height: vh(18);
    background: #409eff;
    border-radius: vw(1);
    margin-right: vw(5);
  }

  .title {
    font-weight: bold;
    font-size: vw(16);
    color: #555555;
  }

  .select-width {
    width: vw(200);
  }

  .select-width2 {
    width: vw(140);
  }
}
</style>
